package com.zjitc.service;

import com.zjitc.mapper.BookMapper;
import com.zjitc.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface BookService {

    List<Book> findAll();

    boolean delete(int id);

    Book findOne(int id);

    boolean update(Book book);

    boolean insert(Book book);

    boolean borrow(int id);

    boolean back(int id);
}
